﻿using System;
using System.Xml.Serialization;

namespace SqlMapper.SqlElements
{
    /// <summary>
	/// Represent an isNotEmpty sql tag element.
	/// </summary>
	[Serializable]
    [XmlRoot("isNotEmpty", Namespace = "http://ibatis.apache.org/mapping")]
    public sealed class IsNotEmpty : BaseTag
    {
        public override bool IsCondition(string value)
        {
            return (value != null && !value.Equals(""));
        }
    }
}
